﻿<?php 
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
<body>
<script language='JavaScript' type='text/JavaScript'>
function CheckForm(){
	if(document.myform.catname.value==''){
		alert('请输入单网页名称！');
		document.myform.catname.focus();
		return false;
	}
}

function loadwindow() {
	window.document.getElementById('frameeditor').height = window.frames["frameeditor"].document.body.scrollHeight +20;
	window.document.getElementById('frameeditor').width = window.frames["frameeditor"].document.body.scrollWidth;
}
</script>
<form name="myform" method="post" action="?module=<?=$module?>&action=<?=$action?>&catid=<?=$catid?>" onSubmit='return CheckForm();'>
<input type="hidden" name="category[type]" value="<?=$type?>">
<table cellpadding="0" cellspacing="1" class="table_form">
  <caption>更新单网页</caption>
    <tr style="display:none">
      <th><strong>单网页名称</strong></th>
      <td><input name='category[catname]' type='text' id='catname' value='<?=$catname?>' size='40' maxlength='50'><!-- <?=form::style('category[style]', $style)?> --> <font color="red">*</font></td>
    </tr>
    <tr>
      <th><strong>单网页图片</strong></th>
      <td><!--<input name='category[image]' type='text' id='image' value='<?=$image?>' size='40' maxlength='50'>--> <?=form::upload_image('category[image]', 'image', $image)?>&nbsp;<?=file_select('image', $catid, 1)?></td>
    </tr>
    <tr>
      <th><strong>单网页内容</strong></th>
      <td><textarea name="category[content]" id="content" style="display:none"><?=$content?></textarea> <?=form::editor('content', 'standard', '100%', 300)?></td>
    </tr>
   
  <tr>
     <td></td>
     <td><input type="submit" name="dosubmit" value=" 确定 ">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重置 "></td>
  </tr>
</table>
</form>
</body>
</html>